/**
 * actions
 */
export default{
    showLoading({ commit }, txt) {
      //提交一个请求给vuex,让vuex调用mutations里面的showLoading方法
      commit("showLoading", txt);
    },
    hideLoading({ commit }) {
      commit("hideLoading");
    },
    showPreviewImage({ commit }, obj) {
      commit("showPreviewImage", obj);
    },
    hidePreviewImage({ commit }) {
      commit("hidePreviewImage");
    },
    showMenu({ commit }, config) {
      commit("showMenu", config);
    },
    hideMenu({ commit }) {
      commit("hideMenu");
    }
  }